package Model;

public class Teacher {
    private Integer id;//主键 唯一标识一条记录 自增
    private String name;
    private Integer age;
    private String sex;
    private String subject;

    public Teacher() {
    }

    public Teacher(String name, Integer age, String sex, String subject) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.subject = subject;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", subject='" + subject + '\'' +
                '}';
    }
}
